/**
 * Copyright (c) 2018-2028, HQY 胡庆一 (215218393@qq.com).
 * <p>
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ocm.pay.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ocm.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author HQY
 * @since 2022-01-11
 */
@Data
@TableName("ocm_shop_payinfo")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ShopPayinfo对象", description = "ShopPayinfo对象")
public class ShopPayinfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 店铺id
     */
	@JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "店铺id")
    private Long shopId;
    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号")
    private String codeId;
    /**
     * 实名人
     */
    @ApiModelProperty(value = "实名人")
    private String codeName;

    private String payPassword;
    /**
     * 余额
     */
    @ApiModelProperty(value = "余额")
    private BigDecimal balance;

    /**
     * 冻结余额
     */
    @ApiModelProperty(value = "冻结余额")
    private BigDecimal freeze;
    /**
     * 积分
     */
    @ApiModelProperty(value = "积分")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long credit;

    @Version
    private Long version;


}
